// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor;

#include "OracleLabelStatement.h"
#include "../../visitor/OracleASTVisitor.h"
#include "../../../../visitor/SQLASTVisitor.h"
#include "../../../../ast/SQLName.h"

OracleLabelStatement::OracleLabelStatement()
{
}

OracleLabelStatement::OracleLabelStatement(SQLName_ptr label)
{
  this->label = label;
}

// @Override
void OracleLabelStatement::accept0(OracleASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(OracleLabelStatement)))
  {
    SQLObjectImpl::acceptChild(std::dynamic_pointer_cast<SQLASTVisitor>(visitor), label);
  }
  visitor->endVisit(SharedObject(OracleLabelStatement));
}

SQLName_ptr OracleLabelStatement::getLabel()
{
  return label;
}

void OracleLabelStatement::setLabel(SQLName_ptr label)
{
  this->label = label;
}
